<%--
    Document   : company
    Created on : Mar 31, 2012, 9:07:08 PM
    Author     : Ajay kumar "mukund"
--%>
<%
    if (session.getAttribute("role") != null) {
        if (session.getAttribute("role").equals("student")) {
            response.sendRedirect("student/home.jsp");
        } else if (session.getAttribute("role").equals("college")) {
            response.sendRedirect("College/chome.jsp");
        } else if (session.getAttribute("role").equals("company")) {
            response.sendRedirect("Company/chome.jsp");
        } else if (session.getAttribute("role").equals("admin")) {
            response.sendRedirect("admin/home.jsp");
        } else {
            session.invalidate();
        }
    }



%>

<%@page import="java.sql.*"%>
<%@page import="jobportal.Dbconn"%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0023) -->
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Jobsite</title>
        <meta name="verify-v1" content="" />

        <meta name="keywords" content="jobsite key word" />
        <meta name="description" content="JObsite meta" />

        <meta name="revisit-after" content="1 day" />

        <meta name="pragma" content="no-cache" />
        <meta name="classification" content="Jobsite" />
        <link rel="shortcut icon" title="Jobsite" href="admin/logo/7201003.ico" />
        <link href="js_css/mystyle.css" rel="stylesheet" type="text/css" />

        <!--[if lte IE 8]><link href="js_css/ie8.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if lte IE 9]><link href="js_css/ie9.css" rel="stylesheet" type="text/css" /><![endif]-->

        <%--JavaScript Ajax Navigation--%>
        <script src="js_css/navigation.js" type="text/javascript" charset="utf-8"></script>

        <%--JQuery Engine--%>
        <script type="text/javascript" src="js_css/jquery-1.7.1.min.js"></script>



        <%--JQuery UI--%>
        <script type="text/javascript" src="js_css/UI/jquery-ui-1.8.18.custom.min.js"></script>
        <link type="text/css" href="js_css/UI/jquery-ui-1.8.18.custom.css" rel="stylesheet" />



        <%--Menu Bar--%>
        <link type="text/css" href="js_css/menu/menu.css" rel="stylesheet" />
        <script type="text/javascript" src="js_css/menu/menu.js"></script>


        <%--jquery picture slide--%>
        <link href="js_css/slide/style.css" rel="stylesheet" type="text/css" />
        <script src="js_css/slide/jquery_slide.js" type="text/javascript" charset="utf-8"></script>
        <script src="js_css/slide/functions.js" type="text/javascript" charset="utf-8"></script>

        <%--JQUERY Form Validation--%>
        <link href="js_css/validation/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
        <script src="js_css/validation/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
        <script src="js_css/validation/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>


        <%--wysiwyg text area--%>
        <link rel="stylesheet" href="js_css/jwysiwyg/jquery.wysiwyg.css" type="text/css" />
        <script type="text/javascript" src="js_css/jwysiwyg/jquery.wysiwyg.js"></script>





 <script type="text/javascript">
            $(function()
            {
                $('#wysiwyg').wysiwyg();
            });
        </script>








    </head>








    <body>


        <div align="center" class="div">
            <table width="800" height="75" border="0" cellpadding="0" cellspacing="0" style="background: #fbf8f8 url(images/tablebody.gif) repeat-x 0 0;" >
                <tbody>
                    <!--Menu Bar Row-->
                    <tr>
                        <td style="background-image:url(js_css/images/top_div.jpg)" >

                            <style type="text/css">
                                div#menu {
                                    position:relative;
                                }
                                div#copyright { display: none; }
                            </style>
                            <div id="menu">
                                <ul class="menu" style="width:95%">
                                    <li class="last"><a href="index.jsp" class="parent"><span>Home</span></a></li>
                                    <li class="last"><a href="student.jsp" class="parent"><span>Student Zone</span></a></li>
                                    <li class="last"><a href="college.jsp"><span>College Zone</span></a></li>
                                    <li class="last"><a href="employer.jsp"><span>Employer Zone</span></a></li>
                                    <li class="last"><a href="admin.jsp"><span>Administrator</span></a></li>
                                    <li class="last"><a href="view_posted_jobs.jsp"><span>Jobs</span></a></li>
                                    <li class="last"><a href="resultall.jsp"><span>Results</span></a></li>
                                    <li class="last"><a href="aboutus.jsp"><span>About us</span></a></li>
                                    <li class="last"><a href="contactus.jsp"><span>Contact us</span></a></li>
                                </ul>
                            </div>

                        </td>
                    </tr>
                    <!--Slider Bar Row-->
                    <tr>
                        <td align="center" valign="middle" width="488">
                            <div class="slider">
                                <div class="slider-holder">
                                    <ul>
                                        <li>

                                            <div class="img"><img src="images/slide2.gif" alt="" /></div>
                                            <div class="slide">
                                                <h2>Recruitment Portal</h2>
                                                <p>  </p>
                                            </div>
                                        </li>

                                        <li>
                                            <div class="img"><img src="images/slide.gif" alt="" /></div>
                                            <div class="slide">
                                                <h2>Recruitment Portal</h2>
                                                <p></p>              
                                            </div>
                                        </li>
                                        <li>
                                            <div class="img"><img src="images/slide2.gif" alt="" /></div>
                                            <div class="slide">
                                                <h2>Recruitment Portal</h2>
                                                <p></p>
                                            </div>
                                        </li>
                                    </ul>
                                </div>

                                <a href="#" class="slider-navigation prev notext"></a>
                                <a href="#" class="slider-navigation next notext"></a>
                            </div>
                        </td>
                    </tr>
                    <!--Search Bar Row-->
                    <tr>
                        <td>





                            <div class="div srch_bg" align="center">



                                <div style="width: 960px; height: 80px; vertical-align: middle;">

                                    <table style="margin-top: 10px; float: left;" border="0" cellpadding="0" cellspacing="0" width="0" height="57">

                                        <tbody>
                                            <tr>

                                                <td class="srch_left">&nbsp;
                                                </td>

                                                <td class="srch_middle" align="left" valign="middle">
                                                    <form action="search_result.jsp"  method="post" name="quicksearch1" id="quicksearch1" onsubmit="return validate(this);">

                                                        <input name="title" class="input_srch" id="title" value="Enter Job Keyword" onclick="if(this.value=='Enter Job Keyword' || this.value=='Enter keywords to search') this.value=''" onblur="if(this.value=='') this.value='Enter Job Keyword'" onfocus="this.style.color='black'" type="text"/>
                                                        <input name="location" class="input_srch" id="location" value="Enter Job City" onclick="if(this.value=='Enter Job City' || this.value=='Enter City Name') this.value=''" onblur="if(this.value=='') this.value='Enter Job City'" onfocus="this.style.color='black'" type="text"/>

                                                        <button class="srch_btn"></button>
                                                    </form>
                                                </td>
                                                <td class="srch_right">&nbsp;
                                                </td>

                                            </tr>
                                        </tbody>
                                    </table>

                                    <div class="post_ad_spacer">

                                    </div>


                                    <a href="student_registration.jsp">
                                        <div class="post_ad_image">

                                        </div>
                                    </a>


                                </div>
                            </div>

                        </td>
                    </tr>
                    <!--Main Content-->
                    <tr>

                        <td>
                            <div align="center" class="div">
                                <div id="main-content">

